<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEsoThemeInformation extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('eso_theme_information', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('eso_theme_information_class_name',128)->comment('名字');
            $table->integer('eso_theme_information_sort')->default('0')->comment('排序');
            $table->string('eso_theme_information_color',128)->comment('颜色');
            $table->string('eso_theme_information_target_group',128)->comment('目标人群');
            $table->string('eso_theme_information_class_time',128)->comment('上课时间');
            $table->integer('eso_theme_information_students_number')->default('0')->comment('学生数');
            $table->string('eso_theme_information_class_way',128)->comment('上课方式');
            $table->string('eso_theme_information_class_address',128)->comment('上课地址');
            $table->string('eso_theme_information_book',128)->comment('教材');
            $table->string('eso_theme_information_mp4_file',128)->comment('mp4_file');
            $table->string('eso_theme_information_mp4_name',128)->comment('mp4_name');
            $table->integer('eso_theme_id')->comment('eso_theme_id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('eso_theme_information');
    }
}
